package command.remoteController.command.light;

import command.remoteController.command.base.Command;
import command.remoteController.receiver.LightReceiver;
import command.remoteController.receiver.base.Receiver;

public class LightOffCommand implements Command {

    private Receiver lightReceiver;

    public LightOffCommand(Receiver lightReceiver) {
        this.lightReceiver = lightReceiver;
    }


    @Override
    public void execute() {
        lightReceiver.off();
    }

    @Override
    public void undo() {
        lightReceiver.on();
    }
}
